package com.demo.study.base.demos;

/**
 * Demo0_Base
 *
 * @author Baymax Gu
 * @since 2024-09-10
 */
public class Demo0_Base {
    public static void main(String[] args) {
        int num = 3;

        int count = 0;
        int ciShu = 0;
        for (int i = 1; i <= num; i++) {
            ciShu++;
            count += i;
        }
        System.out.println("循环次数: " + ciShu);
        System.out.println(count);
    }
}
